@extends('admin::layouts.master')
@section('title')
    列表
@endsection
@section('tab')
    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">

                    <div class="layui-card-body">
                        <button class="layui-btn" onclick="xadmin.open('添加模块','{{route("admin_helpcenter_model_add_page")}}')">
                            <i class="layui-icon"></i>添加</button>
                        <button class="layui-btn" onclick="location.reload()">
                            <i class="layui-icon layui-icon-refresh"></i>
                        </button>
                    </div>
                    <div class="layui-card-body layui_overflow_y ">
                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>模块名称</th>
                                <th>排序</th>
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            @foreach($data as $key=>$value)
                                <tr>
                                    <td>{{ $key+1}}</td>
                                    <td>{{ $value['title'] }}</td>
                                    <td>{{ $value['sort'] }}</td>
                                    <td class="td-manage">
                                        <a title="编辑" onclick="xadmin.open('修改模块','{{route("admin_helpcenter_model_edit_page",["id"=>$value["id"]])}}')" href="javascript:;">
                                            <i class="layui-icon">&#xe63c;</i>编辑</a>
                                        <a title="删除" data-href="{{route('admin_helpcenter_model_delete',['id'=>$value['id']])}}" data-title="确定删除吗？请谨慎操作" href="javascript:;" class="btn btn-warning ajax_member_del">
                                            <i class="layui-icon">&#xe640;</i>删除</a>
                                    </td>
                                </tr>
                            @endforeach
                            @if(empty($data))
                                <td colspan="66" align="center">暂无数据</td>
                            @endif
                            </tbody>
                        </table>
                    </div>
                    <div class="layui-card-body ">
                        <div class="page">
                            {{$page_link}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

@endsection


@section('tab_js')
    <script>

    </script>
@endsection




